/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;

/**
 *
 * @author 75
 */
public class ClassificationType implements Serializable{
   
   public static enum MEASUREUNIT{
           TIME, DISTANCE, POINTS, RANK
   };
   public static enum ORDER{
      H,L
   };
 public static ClassificationType.MEASUREUNIT [] cTypeUnits = {ClassificationType.MEASUREUNIT.TIME,ClassificationType.MEASUREUNIT.DISTANCE, ClassificationType.MEASUREUNIT.POINTS, ClassificationType.MEASUREUNIT.RANK };

public static ClassificationType.ORDER[] cTypeOrder ={ ClassificationType.ORDER.H, ClassificationType.ORDER.L};
   public ClassificationType() {
   }
   
   
   private MEASUREUNIT unit;
   private ORDER order;

   public ClassificationType(MEASUREUNIT unit, ORDER order) {
      this.unit = unit;
      this.order = order;
   }

   /**
    * @return the unit
    */
   public MEASUREUNIT getUnit() {
      return unit;
   }

   /**
    * @return the order
    */
   public ORDER getOrder() {
      return order;
   }

   /**
    * @param unit the unit to set
    */
   public void setUnit(MEASUREUNIT unit) {
      this.unit = unit;
   }

   /**
    * @param order the order to set
    */
   public void setOrder(ORDER order) {
      this.order = order;
   }

   @Override
   public String toString() {
      return this.unit.toString()+ " " + this.order.toString();
   }
   
   
   
   }
   
   

